package com.jkoss.wine.warehouse.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;

import cn.afterturn.easypoi.excel.annotation.Excel;


/**
 * 仓库
 * 
 * @Author Ning
 * @Version 1.0, 2018-10-19
 * @See
 * @Since com.jkoss.wine.warehouse.entity
 * @Description: TODO
 */
public class Warehouse extends Model<Warehouse> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private String id;
    /**
     * 仓库名称
     */
    @Excel(name = "仓库名称", orderNum = "0" , width = 30)
    @TableField("name")
    private String name;
    /**
     * 备注
     */
    @Excel(name = "备注", orderNum = "1" , width = 30)
    @TableField("remk")
    private String remk;
    /**
     * 当操作人为null时，表示自动录入
     */
    @TableField("operator")
    private String operator;
    /**
     * 添加时间
     */
    @TableField("add_time")
    private Date addTime;
    /**
     * 是否删除：0-未删除、1-已删除、2-不能删除
     */
    @TableField("del")
    private Integer del;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemk() {
        return remk;
    }

    public void setRemk(String remk) {
        this.remk = remk;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Integer getDel() {
        return del;
    }

    public void setDel(Integer del) {
        this.del = del;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Warehouse{" +
        ", id=" + id +
        ", name=" + name +
        ", remk=" + remk +
        ", operator=" + operator +
        ", addTime=" + addTime +
        ", del=" + del +
        "}";
    }
}
